package com.ukao.pad.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.ukao.pad.R;
import com.ukao.pad.bean.StoreInfoBean;
import com.ukao.pad.widget.FlowLayout;

import java.util.List;

/**
 * Created by kefu001 on 2018/5/23.
 */

public class StoreNameTagAdapter extends TagAdapter<StoreInfoBean> {

   private Context mContext;
    public StoreNameTagAdapter(Context mContext,List<StoreInfoBean> datas) {
        super(datas);
        this.mContext=mContext;
    }
    @Override
    public View getView(FlowLayout parent, int position, StoreInfoBean storeInfoBean) {
        TextView mTextView=(TextView) LayoutInflater.from(mContext).inflate(R.layout.base_button_tag,
                parent, false);
        mTextView.setText(storeInfoBean.getName());
        return mTextView;
    }
}
